﻿using innovations.ml.core.models;

namespace innovations.ml.core
{
    public class NormalEquation
    {
        public static void Compute(IModel model)
        {
            model.Theta = ((model.X).Transpose().Multiply(model.X)).Inverse().Multiply(model.X.Transpose()).Multiply(model.Y);
        }
    }
}
